# -*- coding: utf-8 -*-
# @author: wch
# @file: readimg.py
# @time: 2023/1/30 13:26
import cv2

cv2.namedWindow("img", cv2.WINDOW_NORMAL)
img = cv2.imread(r"E:\dyk\opencvedu\media\1.jpg", 0)  # 两个参数，一个path,一个flag
cv2.imshow("img", img)
cv2.waitKey(0)
cv2.destroyAllWindows()
